<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/commons/jsp/taglibs.jsp"%>
<%@taglib uri="http://www.framework.com/taglib" prefix="frame"%>
<%@ taglib prefix="frame" uri="http://www.framework.com/taglib" %>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<script type="text/javascript">
     //var requestUrl="http://${basePath}:${port}${ctx}/business/projectmanage/getProjectDetail?projectId=${projectId}&r="+new Date().getTime();
var requestUrl="";
</script>

<%--竞拍人除保证金信息、竞拍文件、竞拍信息（竞拍人自己）、合同及审核信息外，其他信息均不可查看--%>
<%--其他角色可查看所有信息--%>
<div class="easyui-panel" data-options="border:false" style="padding: 6px">
    <c:if test="${roleId ne 'bidder'}">
        <div class="easyui-panel" data-options="border:true,title:'项目基本信息'" style="padding:6px;margin-bottom: 6px">
            <table class="infoTable" style="margin-top: 0px;width:100%">
                <tbody>
                    <tr>
                        <th align="right" width="10%">项目名称</th>
                        <td width="15%">
                            ${project.auctionName}
                        </td>
                        <th align="right" width="10%">项目编号</th>
                        <td width="15%">
                            ${project.code}
                        </td>
                        <th align="right" width="10%">起拍价格</th>
                        <td>
                            <fmt:formatNumber value="${project.startPrice}" type="currency" pattern="#,##0.00#"/>元
                        </td>
                    </tr>
                    <tr>
                        <th align="right" width="10%">每轮加价（元）</th>
                        <td colspan="7">
                            ①&nbsp;${project.stepPrice1}&nbsp;&nbsp;
                            <c:if test="${project.stepPrice2 !=null}">
                                ②&nbsp;${project.stepPrice2}&nbsp;&nbsp;
                                <c:if test="${project.stepPrice3 !=null}">
                                    ③&nbsp;${project.stepPrice3}&nbsp;&nbsp;
                                    <c:if test="${project.stepPrice4 !=null}">
                                        ④&nbsp;${project.stepPrice4}&nbsp;&nbsp;
                                        <c:if test="${project.stepPrice5 !=null}">
                                            ⑤&nbsp;${project.stepPrice5}&nbsp;&nbsp;
                                            <c:if test="${project.stepPrice6 !=null}">
                                                ⑥&nbsp;${project.stepPrice6}&nbsp;&nbsp;
                                                <c:if test="${project.stepPrice7 !=null}">
                                                    ⑦&nbsp;${project.stepPrice7}&nbsp;&nbsp;
                                                    <c:if test="${project.stepPrice8 !=null}">
                                                        ⑧&nbsp;${project.stepPrice8}&nbsp;&nbsp;
                                                    </c:if>
                                                </c:if>
                                            </c:if>
                                        </c:if>
                                    </c:if>
                                </c:if>
                            </c:if>
                        </td>

                    </tr>
                    <tr>
                        <th align="right" width="10%">竞拍时间</th>
                        <td width="15%">
                            <fmt:formatDate value="${project.auctionStart}" pattern="yyy-MM-dd HH:mm:ss"/>
                        </td>
                        <th align="right" width="10%">是否需要报名</th>
                        <td width="15%">
                                ${project.entryAble==true?'是':'否'}
                        </td>
                        <th align="right" width="10%">产权单位</th>
                        <td width="15%">
                                ${project.ownerName}
                        </td>
                    </tr>
                    <tr>
                        <th align="right" width="10%">委托单位</th>
                        <td width="15%">
                                ${project.agentName}
                        </td>
                        <th align="right" width="10%">经办人</th>
                        <td width="15%">
                            ${project.operater}
                        </td>
                        <th align="right" width="10%">联系电话</th>
                        <td width="15%">
                            ${project.operaterTel}
                        </td>

                    </tr>
                    <tr>
                        <th align="right" width="10%">项目类型</th>
                        <td width="15%">
                                ${project.catagoryName}
                        </td>
                        <th align="right" width="10%">交易内容</th>
                        <td>
                            ${project.tradeContent}
                        </td>
                         <th align="right" width="10%">产权单位地址</th>
                        <td>
                            ${project.ownerAddress}
                        </td>
                    </tr>
                    <tr>
                        <th align="right" width="10%">项目状态</th>
                        <td>
                            ${project.statusName}
                        </td>
                        <th align="right" width="10%">付款方式</th>
                        <td width="15%">
                            ${project.payType}
                        </td>
                        <th align="right" width="10%">创建时间</th>
                        <td width="15%">
                            <fmt:formatDate value="${project.createTime}" pattern="yyy-MM-dd HH:mm:ss"/>
                        </td>
                    </tr>
                    <c:if test="${project.status>=50}">
                        <tr>
                            <th align="right" width="10%">项目公示开始时间</th>
                            <td>
                                <fmt:formatDate value="${project.auctionShowStart}" pattern="yyy-MM-dd HH:mm:ss"/>
                            </td>
                            <th align="right" width="10%">项目公示结束结束</th>
                            <td width="15%">
                                <fmt:formatDate value="${project.auctionShowEnd}" pattern="yyy-MM-dd HH:mm:ss"/>
                            </td>
                        </tr>
                    </c:if>
                </tbody>
            </table>
        </div>
    </c:if>

    <c:if test="${roleId ne 'bidder'}">
        <div class="easyui-panel" data-options="border:true,title:'附件信息'" style="padding:6px;margin-bottom: 6px">
                <table class="infoTable" style="margin-top: 6px">
                    <tbody>
                    <tr>
                        <th align="right" width="15%">资产交易申报表</th>
                        <td width="20%">
                            <c:forEach items="${resList}" var="res">
                                <c:if test="${res.functionFlog==2}">
                                    <a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>
                                </c:if>
                            </c:forEach>
                        </td>
                        <th align="right" width="15%">内部决议（已备案）证明</th>
                        <td width="20%">
                            <c:forEach items="${resList}" var="res">
                                <c:if test="${res.functionFlog==3}">
                                    <a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>

                                </c:if>
                            </c:forEach>
                        </td>
                    </tr>

                    <%--转让--%>
                    <c:if test="${isAttorn}">
                    <tr>
                        <th align="right" width="15%">资产转让/处置承诺函</th>
                        <td width="20%">
                            <c:forEach items="${resList}" var="res">
                                <c:if test="${res.functionFlog==7}">
                                    <a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>
                                </c:if>
                            </c:forEach>
                        </td>
                        <th align="right" width="15%">评估报告</th>
                        <td width="20%">
                            <c:forEach items="${resList}" var="res">
                                <c:if test="${res.functionFlog==8}">
                                    <a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>
                                </c:if>
                            </c:forEach>
                        </td>
                    </tr>
                    <tr>
                        <th align="right" width="15%">资产转让(处置)附件</th>
                        <td width="20%">
                            <c:forEach items="${resList}" var="res">
                                <c:if test="${res.functionFlog==9}">
                                    <a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>
                                </c:if>
                            </c:forEach>
                        </td>
                    </c:if>

                    <%--租赁--%>
                    <c:if test="${isLease}">
                    <tr>
                        <th align="right" width="15%">租赁房屋的清空情况</th>
                        <td width="20%">
                            <c:forEach items="${resList}" var="res">
                                <c:if test="${res.functionFlog==4}">
                                    <a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>
                                </c:if>
                            </c:forEach>
                        </td>
                        <th align="right" width="15%">解除协议书</th>
                        <td width="20%">
                            <c:forEach items="${resList}" var="res">
                                <c:if test="${res.functionFlog==5}">
                                    <a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>

                                </c:if>
                            </c:forEach>
                        </td>
                    </tr>
                    <tr>
                        <th align="right" width="15%">租赁附件</th>
                        <td width="20%">
                            <c:forEach items="${resList}" var="res">
                                <c:if test="${res.functionFlog==10}">
                                    <a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>
                                </c:if>
                            </c:forEach>
                        </td>

                    </c:if>

                        <th align="right" width="15%">其他资料</th>
                        <td width="20%">
                            <c:forEach items="${resList}" var="res">
                                <c:if test="${res.functionFlog==6}">
                                    <a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>
                                </c:if>
                            </c:forEach>
                        </td>
                    </tr>
                    <tr>
                        <th align="right" width="15%">补充资料</th>
                        <td width="20%">
                            <c:forEach items="${resList}" var="res">
                                <c:if test="${res.functionFlog==15}">
                                    <a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>
                                </c:if>
                            </c:forEach>
                        </td>
                    </tr>
                    </tbody>
                </table>
        </div>
    </c:if>

    <div class="easyui-panel" data-options="border:true,title:'竞拍文件信息'" style="padding:6px;margin-bottom: 6px">
        <table class="infoTable" style="margin-top: 6px">
            <tbody>
            <tr>
                <th align="right" width="20%">竞拍文件</th>
                <td width="70%">
                    <c:forEach items="${resList}" var="res">
                        <c:if test="${res.functionFlog==1}">
                            <a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>
                        </c:if>
                    </c:forEach>
                </td>
            </tr>
            </tbody>
        </table>
    </div>

    <%--<!-- 项目撤销信息  -->--%>
    <c:if test="${isRevoke}">
            <div class="easyui-panel" data-options="border:true,title:'撤销信息'" style="padding: 4px;margin-bottom: 6px">
                <table class="infoTable" style="margin-top: 6px">
                    <tbody>
                    <%--<tr>--%>
                        <%--<th align="right" width="10%">撤销人</th>--%>
                        <%--<td width="15%">--%>
                                <%--${project.auctionStart}--%>
                        <%--</td>--%>
                        <%--<th align="right" width="10%">撤销时间</th>--%>
                        <%--<td width="15%">--%>
                                <%--${project.tradeTime}--%>
                        <%--</td>--%>
                    <%--</tr>--%>
                    <tr>
                        <th align="right" width="10%">撤销原因</th>
                        <td width="15%">
                            ${project.cancelReason}
                        </td>
                        <th align="right" width="10%">撤销附件</th>
                        <td width="15%">
                          <c:forEach items="${resList}" var="res">
                            <c:if test="${res.functionFlog==900}">
                                <a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>
                            </c:if>
                          </c:forEach>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
    </c:if>

	<!-- 项目审核信息  -->
	<c:if test="${isShowAudit}">
		<div class="easyui-panel" data-options="border:true,title:'项目审核信息'" style="padding:6px;margin-bottom: 6px">
			<c:forEach var="comment" items="${commentList}">
				<table class="infoTable" style="margin-top: 6px">
					<tbody>
					<tr>
						<th align="right" width="10%">审核人</th>
						<td width="40%">
								${comment.userId}
						</td>
						<th align="right" width="10%">审核时间</th>
						<td width="15%">
							<fmt:formatDate value="${comment.time}" pattern="yyy-MM-dd HH:mm:ss"/>
						</td>
					</tr>
					<tr>
						<th align="right" width="10%">审核意见</th>
						<td width="15%" colspan="1">
								${comment.fullMessage}
						</td>
					</tr>
					</tbody>
				</table>
			</c:forEach>

            <%--<c:forEach var="comment" items="${contractAuditList}" varStatus="sta">--%>
                <%--<table class="infoTable" style="margin-top: 6px">--%>
                    <%--<tbody>--%>
                    <%--<tr>--%>
                        <%--<th align="right" width="10%">审核时间</th>--%>
                        <%--<td width="25%" colspan="3">--%>
                            <%--<fmt:formatDate value="${comment.time}" pattern="yyy-MM-dd HH:mm:ss"/>--%>
                        <%--</td>--%>
                    <%--</tr>--%>
                    <%--<tr  style="margin:2px 0;">--%>
                        <%--<th align="right" width="10%">审核意见</th>--%>
                        <%--<td width="55%">--%>
                                <%--${comment.fullMessage }--%>
                        <%--</td>--%>
                    <%--</tr>--%>
                    <%--</tbody>--%>
                <%--</table>--%>
            <%--</c:forEach>--%>

		</div>
	</c:if>

    <%--保证金--%>
    <div class="easyui-panel" data-options="border:true,title:'保证金信息'" style="padding:6px;margin-bottom: 6px">
            <table class="infoTable" style="margin-top: 6px">
                <tbody>
                <tr>
                    <th align="right" width="10%">竞拍保证金金额</th>
                    <td width="15%">
                            ${project.deposit}
                    </td>
                    <th align="right" width="10%">竞拍保证金账号</th>
                    <td width="15%" colspan="1">
                        ${project.bankAccount}
                    </td>
                </tr>
                <tr>
                    <th align="right" width="10%">是否托管</th>
                    <td width="15%" colspan="1">
                        ${project.trusteeship==true?'是':'否'}
                    </td>
                </tr>
                <tr>
                    <th align="right" width="10%">履约保证金金额</th>
                    <td width="15%">
                        ${project.executeDeposit}
                    </td>
                    <c:if test="${project.trusteeship==true && project.executeDeposit>0}">
                        <th align="right" width="10%">履约保证金账号</th>
                        <td width="15%" colspan="1">
                            ${project.executeBankAccount}
                        </td>
                    </c:if>
                </tr>
                </tbody>
            </table>
    </div>

    <!-- 竞价公示暂停审核 -->
    <c:if test="${isShowShotPause}"><!-- isShowShotPause -->
    <div class="easyui-panel" data-options="border:true,title:'竞价公示暂停'" style=" padding: 4px; margin-bottom: 6px">
        <c:forEach var="pp" items="${shotPauseList }">
            <table class="infoTable" style="margin-top: 6px">
                <tbody>
                <tr>
                    <th align="right" width="10%">暂停申请时间</th>
                    <td width="25%">
                        <fmt:formatDate value="${pp.pauseTime}" pattern="yyy-MM-dd HH:mm:ss" />
                    </td>
                    <th align="right" width="10%">申请理由</th>
                    <td width="20%">${pp.reason}</td>
                </tr>
                <tr>
                    <th align="right" width="10%">批复</th>
                    <td width="20%" colspan="3">${pp.replay}</td>
                </tr>
                <tr>
                    <th align="right" width="10%">附件</th>
                    <td width="25%" colspan="3">
                        <c:forEach items="${frame:findResByBusinessId(pp.id)}" var="res">
                            <a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}','${requestUrl }');" >${res.oldName }</a><br/>
                        </c:forEach>
                    </td>
                </tr>
                <c:if test="${project.status==24 }">
                    <tr>
                        <th align="right" width="10%">撤销原因</th>
                        <td width="25%" colspan="3">
                                ${pp.revokeReason }
                        </td>
                    </tr>
                </c:if>
                <c:if test="${project.status==16 }">
                    <tr>
                        <th align="right" width="10%">流标原因</th>
                        <td width="25%" colspan="3">
                                ${pp.flowReason }
                        </td>
                    </tr>
                </c:if>
                </tbody>
            </table>
        </c:forEach>
    </div>
    </c:if>

<!-- 竞拍信息(竞拍人只能看到自己的、其他角色可查看全部) -->
<c:if test="${status}">
    <c:if test="${!(roleId eq 'bidder')}">
        <c:if test="${isShowBidList}">
            <c:if test="${!isShoter }">
                <div id="bidMessage" style="margin: 0 auto;width: 200px;"></div>
            </c:if>
        </c:if>
        <c:if test="${bidInfo!=null }">
            <div class="easyui-panel" data-options="border:true,title:'竞拍信息'" style="padding: 4px;margin-bottom: 6px">

                <table class="infoTable" style="margin-top: 6px">
                    <tbody>
                    <tr>
                        <th align="right" width="10%">竞拍开始时间</th>
                        <td width="15%">
                            <fmt:formatDate value="${project.auctionStart}" pattern="yyy-MM-dd HH:mm:ss"/>
                        </td>
                        <th align="right" width="10%">竞拍结束时间</th>
                        <td width="15%">
                            <fmt:formatDate value="${project.auctionEnd}" pattern="yyy-MM-dd HH:mm:ss"/>
                        </td>
                        <th align="right" width="10%">是否需要报名</th>
                        <td width="15%">
                                ${project.entryAble==true?'是':'否'}
                        </td>
                        <c:if test="${project.entryAble}">
                        <td align="center" width="10%">
                            <a href="javascript:void(0)" onclick="getSignDetail('${project.id}')" class="">查看报名信息</a>
                        </td>
                        </c:if>
                    </tr>
                    </tbody>

                </table>

                <table class="infoTable" style="margin-top: 6px">
                    <tr>
                        <th style="text-align: center;" width="25%">竞拍单位名称</th>
                        <th style="text-align: center;" width="25%">报价金额(元)</th>
                        <th style="text-align: center;" width="25%">竞拍时间</th>
                        <%--<th style="text-align: center;" width="25%">竞拍详情</th>--%>
                    </tr>
                    <jsp:useBean id="Timestamp" class="java.util.Date"/>
                    <c:forEach var="aa" items="${bidInfo }">
                        <tr>
                            <td align="center" width="25%">
                                    ${aa.bidderName}
                            </td>
                            <td align="center" width="25%">
                                <fmt:formatNumber value="${aa.bidderPrice}" type="currency" pattern="#,###.00#"/>
                            </td>
                            <td align="center" width="25%">
                                <%--<fmt:formatDate value="${aa.bidderTime}" pattern="yyy-MM-dd HH:mm:ss"/>--%>
                                <%--${aa.bidderTime}--%>
                                <c:set target="${Timestamp}" property="time" value="${aa.bidderTime}"/>
                                   <%--利用fmt标签将date对象进行格式化输出--%>
                                <fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss.SSS" value="${Timestamp}" type="both"/>
                            </td>
                            <%--<td align="center" width="25%">--%>
                                <%--<a href="javascript:void(0)" onclick="getProjectBidDetail('${aa.id}')" class="">详情</a>--%>
                            <%--</td>--%>
                        </tr>
                    </c:forEach>
                </table>
            </div>
        </c:if>
    </c:if>

    <%--竞拍人查看自己竞拍信息--%>
    <c:if test="${roleId eq 'bidder'}">
        <c:if test="${bidInfo!=null }">
            <div class="easyui-panel" data-options="border:true,title:'我的竞拍信息'" style="padding: 4px;margin-bottom: 6px">

                <table class="infoTable" style="margin-top: 6px">
                    <tbody>
                    <tr>
                        <th align="right" width="10%">竞拍开始时间</th>
                        <td width="15%">
                                ${project.auctionStart}
                        </td>
                        <th align="right" width="10%">竞拍结束时间</th>
                        <td width="15%">
                                ${project.auctionEnd}
                        </td>
                        <th align="right" width="10%">是否需要报名</th>
                        <td width="15%">
                                ${project.entryAble==true?'是':'否'}
                        </td>
                        <c:if test="${project.entryAble}">
                            <th align="right" width="10%">报名状态</th>
                            <td align="center" width="10%">
                                ${selfBidInfoStatus}
                            </td>
                        </c:if>
                    </tr>
                    </tbody>

                </table>
                <table class="infoTable" style="margin-top: 6px">
                    <tr>
                        <th style="text-align: center;" width="25%">竞拍单位名称</th>
                        <th style="text-align: center;" width="25%">报价金额(元)</th>
                        <th style="text-align: center;" width="25%">竞拍时间</th>
                        <%--<th style="text-align: center;" width="25%">竞拍详情</th>--%>
                    </tr>
                    <jsp:useBean id="Timestamp2" class="java.util.Date"/>
                    <c:forEach var="bb" items="${selfBidInfo}">
                        <tr>
                            <td align="center" width="25%">
                                    ${bb.bidderName}
                            </td>
                            <td align="center" width="25%">
                                <fmt:formatNumber value="${bb.bidderPrice}" type="currency" pattern="#,###.00#"/>
                            </td>
                            <td align="center" width="25%">
                                <c:set target="${Timestamp2}" property="time" value="${bb.bidderTime}"/>
                                    <%--利用fmt标签将date对象进行格式化输出--%>
                                <fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss.SSS" value="${Timestamp2}" type="both"/>
                            </td>
                            <%--<td align="center" width="25%">--%>
                                <%--<a href="javascript:void(0)" onclick="getProjectBidDetail('${bb.id}')" class="">详情</a>--%>
                            <%--</td>--%>
                        </tr>
                    </c:forEach>
                </table>
            </div>
        </c:if>
    </c:if>
</c:if>

    <%--竞拍结果--%>
    <c:if test="${!(roleId eq 'bidder')}">
        <c:if test="${project.hitPrice!=null }">
            <div class="easyui-panel" data-options="border:true,title:'竞拍结果'" style="padding: 4px;margin-bottom: 6px">
                <c:if test="${project.status!=800 && project.status!=110 }">
                    <table class="infoTable" style="margin-top: 6px">
                        <tr>
                            <th align="right" width="10%">中标单位</th>
                            <td width="20%">${project.winnerName}</td>
                            <th align="right" width="10%">中标价格(元)</th>
                            <td width="20%">${project.hitPrice}</td>
                        </tr>
                        <c:forEach var="ofa" items="${commentOwnFailList }">
                            <tr style="margin:2px 0;">
                                <th align="right" width="10%">确认理由</th>
                                <td width="20%">
                                    ${ofa.fullMessage}
                                </td>
                            </tr>
                            <tr>
                                <th align="right" width="10%">确认时间</th>
                                <td width="20%">
                                    <fmt:formatDate value="${ofa.time}" pattern="yyy-MM-dd HH:mm:ss"/>
                                </td>
                            </tr>
                        </c:forEach>
                        <c:forEach var="fa" items="${commentFailList }">
                            <tr style="margin:2px 0;">
                                <th align="right" width="10%">审核人</th>
                                <td width="20%">
                                        ${fa.userId}
                                </td>
                                <th align="right" width="10%">审核时间</th>
                                <td width="20%">
                                    <fmt:formatDate value="${fa.time}" pattern="yyy-MM-dd HH:mm:ss"/>
                                </td>
                            </tr>
                            <tr style="margin:2px 0;">
                                <th align="right" width="10%">审核原因</th>
                                <td width="20%">
                                        ${fa.fullMessage}
                                </td>
                            </tr>
                        </c:forEach>

                        <tr>
                            <th align="right" width="10%">评审纪要</th>
                            <td width="20%">
                                <c:forEach items="${resList}" var="res">
                                    <c:if test="${res.functionFlog==11}">
                                        <a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>
                                    </c:if>
                                </c:forEach>
                            </td>
                            <th align="right" width="10%">其他附件</th>
                            <td width="20%">
                                <c:forEach items="${resList}" var="res">
                                    <c:if test="${res.functionFlog==12}">
                                        <a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>
                                    </c:if>
                                </c:forEach>
                            </td>
                        </tr>
                        <c:if test="${project.status>=120 }">
                            <tr>
                                <th align="right" width="10%">中标公示开始时间</th>
                                <td>
                                    <fmt:formatDate value="${project.hitShowStart}" pattern="yyy-MM-dd HH:mm:ss"/>
                                </td>
                                <th align="right" width="10%">中标公示结束时间</th>
                                <td width="15%">
                                    <fmt:formatDate value="${project.hitShowEnd}" pattern="yyy-MM-dd HH:mm:ss"/>
                                </td>
                            </tr>
                        </c:if>
                    </table>
                </c:if>

                <c:if test="${project.status==800 || project.status==110 }">
                    <table class="infoTable" style="margin-top: 6px">
                        <tbody>
                            <c:forEach var="ofa" items="${commentOwnFailList }">
                                <tr style="margin:2px 0;">
                                    <th align="right" width="10%">流标原因</th>
                                    <td width="20%">
                                            ${ofa.fullMessage}
                                    </td>
                                </tr>
                            </c:forEach>
                            <c:forEach var="fa" items="${commentFailList }">
                                <tr style="margin:2px 0;">
                                    <th align="right" width="10%">审核人</th>
                                    <td width="20%">
                                            ${fa.userId}
                                    </td>
                                    <th align="right" width="10%">审核时间</th>
                                    <td width="20%">
                                        <fmt:formatDate value="${fa.time}" pattern="yyy-MM-dd HH:mm:ss"/>
                                    </td>
                                </tr>
                                <tr style="margin:2px 0;">
                                    <th align="right" width="10%">审核原因</th>
                                    <td width="20%">
                                            ${fa.fullMessage}
                                    </td>
                                </tr>
                            </c:forEach>
                        </tbody>
                            <tr>
                                <th align="right" width="10%">评审纪要</th>
                                <td width="20%">
                                    <c:forEach items="${resList}" var="res">
                                        <c:if test="${res.functionFlog==11}">
                                            <a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>
                                        </c:if>
                                    </c:forEach>
                                </td>
                                <th align="right" width="10%">其他附件</th>
                                <td width="20%">
                                    <c:forEach items="${resList}" var="res">
                                        <c:if test="${res.functionFlog==12}">
                                            <a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName }</a><br/>
                                        </c:if>
                                    </c:forEach>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <table class="infoTable" style="margin-top: 6px">
                        <tr>
                            <th align="right" width="10%">流标公示开始时间</th>
                            <td width="15%">
                                <fmt:formatDate value="${project.flowshowStart}" pattern="yyy-MM-dd HH:mm:ss"/>
                            </td>
                            <th align="right" width="10%">流标公示结束时间</th>
                            <td width="15%">
                                <fmt:formatDate value="${project.flowshowEnd}" pattern="yyy-MM-dd HH:mm:ss"/>
                            </td>
                        </tr>
                    </table>
                </c:if>
            </div>
        </c:if>
    </c:if>

    <!-- 中标公示暂停审核 -->
    <c:if test="${isShowBidPause}">
        <div class="easyui-panel" data-options="border:true,title:'中标公示暂停'" style=" padding: 4px; margin-bottom: 6px">
            <c:forEach var="pp" items="${bidPauseList }">
                <table class="infoTable" style="margin-top: 6px">
                    <tbody>
                    <tr>
                        <th align="right" width="10%">暂停申请时间</th>
                        <td width="25%">
                            <fmt:formatDate value="${pp.pauseTime}" pattern="yyy-MM-dd HH:mm:ss" />
                        </td>
                        <th align="right" width="10%">申请理由</th>
                        <td width="20%">${pp.reason}</td>
                    </tr>
                    <tr>
                        <th align="right" width="10%">批复</th>
                        <td width="20%" colspan="3">${pp.replay}</td>
                    </tr>
                    <tr>
                        <th align="right" width="10%">附件</th>
                        <td width="25%" colspan="3">
                            <c:forEach items="${frame:findResByBusinessId(pp.id)}" var="res">
                                <a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}','${requestUrl }');" >${res.oldName }</a><br/> <br />
                            </c:forEach>
                        </td>
                    </tr>
                    <c:if test="${project.status==24 }">
                        <tr>
                            <th align="right" width="10%">撤销原因</th>
                            <td width="25%" colspan="3">
                                    ${pp.revokeReason }
                            </td>
                        </tr>
                    </c:if>
                    <c:if test="${project.status==16 }">
                        <tr>
                            <th align="right" width="10%">流标原因</th>
                            <td width="25%" colspan="3">
                                    ${pp.flowReason }
                            </td>
                        </tr>
                    </c:if>
                    </tbody>
                </table>
            </c:forEach>
        </div>
    </c:if>

    <!-- 合同审核 -->
    <c:if test="${isShowContractAudit}">
        <div class="easyui-panel" data-options="border:true,title:'合同及审核信息'" style="padding: 4px;margin-bottom: 6px">
            <table class="infoTable" style="margin-top: 6px">
                <tbody>
                <tr>
                    <th align="right" width="10%">上传人</th>
                    <td width="40%">
                            ${project.contactUpUserName }
                    </td>
                    <th align="right" width="10%">上传时间</th>
                    <td width="40%">
                            ${project.contactUpTime }
                    </td>
                </tr>
                <tr>
                    <th align="right" width="10%">合同附件</th>
                    <td width="40%" >
                        <c:forEach items="${resList}" var="res">
                            <c:if test="${res.functionFlog==13}">
                                <a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}','${requestUrl }');" >${res.oldName }</a><br/><br/>
                            </c:if>
                        </c:forEach>
                    </td>
                    <th align="right" width="10%">中标通知书</th>
                    <td width="40%" >
                        <c:forEach items="${resList}" var="res">
                            <c:if test="${res.functionFlog==14}">
                                <a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}','${requestUrl }');" >${res.oldName }</a><br/><br/>
                            </c:if>
                        </c:forEach>
                    </td>
                </tr>
                </tbody>
            </table>

            <c:forEach var="comment" items="${contractAuditList}" varStatus="sta">
                <table class="infoTable" style="margin-top: 6px">
                    <tbody>
                        <tr>
                            <th align="right" width="10%">审核人</th>
                            <td width="40%" colspan="3">
                                    ${comment.userId}
                            </td>
                        </tr>
                        <tr>
                            <th align="right" width="10%">审核时间</th>
                            <td width="20%" colspan="3">
                                <fmt:formatDate value="${comment.time}" pattern="yyy-MM-dd HH:mm:ss"/>
                            </td>
                        </tr>
                        <tr  style="margin:2px 0;">
                            <th align="right" width="10%">审核意见</th>
                            <td width="40%">
                                    ${comment.fullMessage }
                            </td>
                        </tr>

                    </tbody>
                </table>
            </c:forEach>
            <c:if test="${project.status>=170 }">
                <table class="infoTable" style="margin-top: 6px">
                    <tr>
                        <th align="right" width="10%">合同公示开始时间</th>
                        <td width="15%">
                            <fmt:formatDate value="${project.contactshowStart}" pattern="yyy-MM-dd HH:mm:ss"/>
                        </td>
                        <th align="right" width="10%">合同公示结束时间</th>
                        <td width="15%">
                            <fmt:formatDate value="${project.contactshowEnd}" pattern="yyy-MM-dd HH:mm:ss"/>
                        </td>
                    </tr>
                </table>
            </c:if>
        </div>
    </c:if>


</div>
<script type="text/javascript">
	/**
	 * 操作按钮处理
	 * @param {Object} value
	 * @param {Object} row
	 * @param {Object} index
	 */
	function getOptionsBtn(value, row, index){
		var btnsHtml = "<span class='optionBtnsArea'>";
		var infoViewHtml = '<a href="javascript:void(0)" onclick="getProjectBidDetail(\'' + row.id + '\')" class="">详情</a>&nbsp;';
		//var isFlow="${isFlow}";
		if("${isFlow}"=="false"){
			btnsHtml+=infoViewHtml; 
		}
		
		return btnsHtml +"</span>";
	}

    /**
     *投标详情
     */
    function getProjectBidDetail(id){
        top.$('#secondtLevelDialog').dialog({
            title:"投标详情",
            iconCls:'icon-view',
            width:300,
            height: 200,
            closed: false,
            inline : true,
            cache: false,
            href: "${ctx}/auctionBid/business/getBidDetail?id=" + id,
            modal: true,
            extractor : function(data){
                if($.trim(data) == "unLogin"){
                    var msn = ''||i18n[''];
                    msn = msn||i18n[data];
                    if(msn != undefined){
                        top.$.messager.alert('提示',msn,'info',function(){top.location='ctx/manage';});
                        return '';
                    }
                }
                return data;
            },
            buttons : [{
                text:'取消',
                iconCls:'icon-cancel',
                handler:function(){
                    top.$('#secondtLevelDialog').dialog('close');
                }}]
        });
        top.$('#secondtLevelDialog').dialog("center");
    }

    /**
     * 项目报名详情
     */
    function getSignDetail(id){
        top.$('#secondtLevelDialog').dialog({
            title:"报名详情",
            iconCls:'icon-view',
            width:900,
            height: 560,
            closed: false,
            inline : true,
            cache: false,
            href: "${ctx}/auction/business/regAudit/bidderDetailList?auctionId=" + id,
            modal: true,
            extractor : function(data){
                if($.trim(data) == "unLogin"){
                    var msn = ''||i18n[''];
                    msn = msn||i18n[data];
                    if(msn != undefined){
                        top.$.messager.alert('提示',msn,'info',function(){top.location='ctx/manage';});
                        return '';
                    }
                }
                return data;
            },
            buttons : [{
                text:'取消',
                iconCls:'icon-cancel',
                handler:function(){
                    top.$('#secondtLevelDialog').dialog('close');
                }}]
        });
        top.$('#secondtLevelDialog').dialog("center");
    }

    /**
     *datagirl无数据是显示
     */
    var myview = $.extend({},$.fn.datagrid.defaults.view,{
        onAfterRender:function(target){
            $.fn.datagrid.defaults.view.onAfterRender.call(this,target);
            var opts = $(target).datagrid('options');
            var vc = $(target).datagrid('getPanel').children('div.datagrid-view');
            vc.children('div.datagrid-empty').remove();
            //alert(JSON.stringify($(target).datagrid('getRows')));
            var status="${project.status}"//$("#")
            var isBidder="${isBidder}";
            //alert(isBidder);
            //alert(isBidder=="true");
            //alert(status);
            if (!$(target).datagrid('getRows').length&&status!=7){//无人投标
                //$("#bidMessage").html("<strong>无投标信息</strong>");
                //$("#bidMessage").css("padding","10px");
                var d = $('<div class="datagrid-empty"></div>').html('<strong>无投标信息</strong>').appendTo(vc);
                d.css({
                    position:'absolute',
                    left:0,
                    top:50,
                    width:'100%',
                    textAlign:'center'
                });
            }
        }
    });

</script>